const getters ={
    username:state =>state.username,
    token:state =>state.token,
    routes: state =>state.routes,
    /**
     * 角色编号,1代表admin,2代表editor
     * @param state
     * @returns {*}
     */
    role: state =>state.role,
    /**
     * 当前用户所居住城市
     * @param state
     * @returns {getters.city|(function(*))|string|string}
     */
    city: state =>state.city
}
export default getters